package org.example.examsystem.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam {
    private Integer id;
    private String paperName;
    private Integer singleChoiceCount;
    private Integer singleChoiceScore;
    private Integer multipleChoiceCount;
    private Integer multipleChoiceScore;
    private Date examDate;
    private Date examTime;
    private Integer testTime;
    private Integer cno;
    private Integer userId;
    private Integer classId;

    //下属是生成试卷所需要的实体字段,等待后续优化,为实现功能先保留
    private Integer eid;

    private String pname;

    private String courseName;
    private Integer totalScore;

    // 题目列表
    private List<Question> questions;

    // 新增字段,用于查看学生的考试详情
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tjtime;
    private Integer zscore;
    private Integer score;








}